package com.corticon.dialogs.util;

import java.util.Comparator;

import com.corticon.dialogs.model.ResponseEntry;

public class MyComparator implements Comparator {

	public int compare(Object o1, Object o2) {
		ResponseEntry u1 = (ResponseEntry) o1;
		ResponseEntry u2 = (ResponseEntry) o2;
		if (u1.getSequence() > u2.getSequence()) {
			return 1;
		} else {
			return -1;
		}
	}

}
